import request from "@/router/axios";

export const getList = (current, size, params) => {
  return request({
    url: "/api/hg-quality/costanalysereport/page",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

// export const getCostadjustform = (current, size, params) => {
//   return request({
//     url: `/api/hg-quality/costadjustform/list`,
//     method: "get",
//     params: {
//       ...params,
//       current,
//       size
//     }
//   });
// };

export const submit = (data, type) => {
  return request({
    url: `/api/hg-quality/costanalysereport/${type}`,
    method: "post",
    data: data
  });
};

export const remove = ids => {
  return request({
    url: `/api/hg-quality/costanalysereport/remove`,
    method: "post",
    params: {
      ids
    }
  });
};

export const detail = id => {
  return request({
    url: `/api/hg-quality/costanalysereport/detail`,
    method: "get",
    params: {
      id
    }
  });
};

export const startProcess = id => {
  return request({
    url: `/api/hg-quality/costanalysereport/start-process`,
    method: "post",
    params: {
      id
    }
  });
};